package com.topchain.licenceverify.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @DESCRIPTION: 和自动配置类 LicenceVerifyAutoConfiguration 绑定的 配置属性类
 * @USER: shg
 * @DATE: 2023/4/11 15:06
 */
@ConfigurationProperties(prefix = "licence")
public class LicenceProperties {

    private String rootCertPath;
    private String userCertPath;
    private String licencePath;

    private boolean enable = true;
    
    private boolean verifyIP;
    private boolean verifyMac;

    public String getRootCertPath() {
        return rootCertPath;
    }

    public void setRootCertPath(String rootCertPath) {
        this.rootCertPath = rootCertPath;
    }

    public String getUserCertPath() {
        return userCertPath;
    }

    public void setUserCertPath(String userCertPath) {
        this.userCertPath = userCertPath;
    }

    public String getLicencePath() {
        return licencePath;
    }

    public void setLicencePath(String licencePath) {
        this.licencePath = licencePath;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public boolean isVerifyIP() {
        return verifyIP;
    }

    public void setVerifyIP(boolean verifyIP) {
        this.verifyIP = verifyIP;
    }

    public boolean isVerifyMac() {
        return verifyMac;
    }

    public void setVerifyMac(boolean verifyMac) {
        this.verifyMac = verifyMac;
    }
}
